﻿namespace Netbits.Common.General.CommandLine
{
	/// <summary>
	/// Represent a command-line argument with a string value
	/// </summary>
	public sealed class ArgumentString : ArgumentBase<string>
	{
		#region Constructor

		/// <summary>
		/// Create new instance of this class with specified short-name
		/// </summary>
		/// <param name="ShortName_">Short name of this argument</param>
		public ArgumentString( string ShortName_ ) : base( ShortName_ )
		{
		}

		#endregion

		#region Overrides

		/// <summary>
		/// Parse specified value to a string
		/// Always true!
		/// </summary>
		/// <param name="Value_">Value to parse</param>
		public override void Parse( string Value_ )
		{
			_Value = Value_;
			_IsSet = true;
		}

		#endregion
	}
}
